﻿package com.tudou.track
{
    import com.tudou.ad.interfaces.*;
    import com.tudou.config.*;
    import com.tudou.utils.*;
    import flash.net.*;

    public class NielsenTracker extends Object
    {
        public static const PLAY:int = 1;
        public static const RECOMMAND_PLAY:int = 3;
        public static const EFFECTIVE_PLAY:int = 4;
        public static const CLICK:int = 2;

        public function NielsenTracker()
        {
            return;
        }// end function

        public static function send(param1:int, param2:IAdThrowInfo, param3:IAdItemInfo) : void
        {
            var _loc_4:* = Config.NIELSEN_URL;
            var _loc_5:Array = ["ca", param2.channel, "/ch", param2.channel, "/su", "00", "/ad", param3.oid, "/t", param1, "/cr", param3.aid, "/b", param3.type, "/m", param3.id, "/do", "01"];
            _loc_4 = _loc_4 + ("?" + "ci=cn-vtudou");
            _loc_4 = _loc_4 + ("&" + "cg=0");
            _loc_4 = _loc_4 + ("&" + "si=" + _loc_5.join(""));
            _loc_4 = _loc_4 + ("&" + "rnd=" + RandString.noCache);
            var _loc_6:* = new URLRequest(_loc_4);
            sendToURL(_loc_6);
            return;
        }// end function

    }
}
